home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime text / qttext / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.7 KB  |  77 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Functions that could be overridden in a specific application.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based (heavily!) on the MovieShell code written by Apple DTS
  9. //
  10. //    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <4>         09/11/97    rtm        merged MacApplication.h and WinApplication.h
  15. //       <3>         08/21/97    rtm        begun adding Windows support
  16. //       <2>         11/27/96    rtm        conversion to personal coding style
  17. //       <1>         12/21/94    khs        first file
  18. //       
  19. //////////
  20.  
  21. #pragma once
  22.  
  23. //////////
  24. // header files
  25. //////////
  26.  
  27. #ifndef __QUICKTIMEVR__
  28. #include <QuickTimeVR.h>
  29. #endif
  30.  
  31. #ifndef __QTUtilities__
  32. #include "QTUtilities.h"
  33. #endif
  34.  
  35. #include <TextUtils.h>
  36. #include <string.h>
  37.  
  38. #if TARGET_OS_MAC
  39. #include "MacFramework.h"
  40. #include "AppConfiguration.h"
  41. #endif    // TARGET_OS_MAC
  42.  
  43. #if TARGET_OS_WIN32
  44. #include "WinFramework.h"
  45. #endif    // TARGET_OS_WIN32
  46.  
  47. #include "ComResource.h"
  48.  
  49. //////////
  50. // constants
  51. //////////
  52.  
  53. #define kTextDialogID            131
  54. #define kTextOKIndex            1
  55. #define kTextLabelIndex            2
  56. #define kTextTextEditIndex        3
  57.  
  58. #define kEditDialogID            132
  59. #define kEditOKIndex            1
  60. #define kEditLabelIndex            2
  61. #define kEditTextEditIndex        3
  62. #define kEditCancelIndex        4
  63.  
  64. //////////
  65. // structures
  66. //////////
  67.  
  68. // application-specific data
  69. typedef struct {
  70.     Boolean                        fMovieHasText;        // does the movie have a text track?
  71.     Boolean                        fTextIsChapter;        // is the text track also a chapter track?
  72.     Track                        fTextTrack;            // the (first) text track in the movie
  73.     MediaHandler                fTextHandler;        // the media handler for the text track
  74. } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
  75.  
  76.  
  77. // the function prototypes are in the file MacFramework.h or WinFramework.h